package o;

import android.content.Context;
import android.widget.TextView;
import com.huawei.appgallery.forum.base.card.bean.Section;
import com.huawei.appgallery.forum.section.api.ISectionDetailActivityProtocol;
import com.huawei.appgallery.forum.section.api.ISectionDetailActivityResult;

public class bvf {
    private static bvf ˊ = new bvf();

    public static bvf ˋ() {
        return ˊ;
    }

    public void ˊ(final Context context, final Section section, final TextView textView) {
        fjb ˎ = fho.ˏ().ˋ("Section").ˎ("section_detail_activity");
        ISectionDetailActivityProtocol iSectionDetailActivityProtocol = (ISectionDetailActivityProtocol) ˎ.ˊ();
        iSectionDetailActivityProtocol.setSectionId(section.ˊ());
        iSectionDetailActivityProtocol.setUri(section.ॱॱ());
        if (textView == null) {
            fiu.ˊ().ˏ(context, ˎ);
        } else {
            fiu.ˊ().ॱ(context, ˎ, new fjc(this) {
                final /* synthetic */ bvf ॱ;

                public void ˎ(int i, Object obj) {
                    if (i == -1 && (obj instanceof ISectionDetailActivityResult)) {
                        section.ˎ(((ISectionDetailActivityResult) obj).getSection().ʻ());
                        textView.setText(bst.ॱ(context, (long) section.ʻ()));
                    }
                }
            });
        }
    }
}
